<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control"  name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Staff_type')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div id="staff_type" class="radio" data-rule="required">-->
<!--                {foreach name="$staff_type" item="vo"}-->
<!--                <label>-->
<!--                    <input name="row[staff_type]" type="radio"  value="{$key}" data-tip="" <?= ($key == $row['staff_type']) ? 'checked' : '' ?>> {$vo}-->
<!--                </label>-->
<!--                {/foreach}-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Count_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio" data-rule="required">
                <label>
                    <input name="row[count_type]" type="radio"  value="1" data-tip="" <?= (1 == $row['count_type']) ? 'checked' : '' ?>> 次数
                </label>
                <label>
                    <input name="row[count_type]" type="radio"  value="2" data-tip="" <?= (2 == $row['count_type']) ? 'checked' : '' ?>> 单选
                </label>
            </div>
        </div>
    </div>
    <div class="form-group num_price">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num_price')}（元）:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num_price" data-rule="required"  class="form-control" step="0.01" name="row[num_price]" type="number" value="{$row.num_price|htmlentities}">
        </div>
    </div>

    <div class="form-group staff_type_arr">
        <label class="control-label col-xs-12 col-sm-2">单选项:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="row[staff_type_arr]" data-template="testtpl">
                <dd>
                    <ins style="width:30%">单选项</ins>
                    <ins>费用（元）</ins>
                </dd>
                <dd>
                    <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                </dd>
                <textarea name="row[staff_type_arr]"  class="form-control hide" cols="30" rows="5">{$item_arr}</textarea>
            </dl>
            <script type="text/html" id="testtpl">
                <dd class="form-inline">
                    <input  type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" value="<%=row['name']%>" style="width:30%">
                    <input  type="number" name="row[<%=name%>][<%=index%>][price]" class="form-control" value="<%=row['price']%>" style="width:25%">
                    <input type="hidden" name="row[<%=id%>][<%=index%>][id]"  class="form-control" value="<%=row['id']%>" style="width:30%">

                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                </dd>
            </script>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
